package com.heima.comment.controller;

import com.heima.common.dtos.FindNewsCommentsDto;
import com.heima.comment.service.ApCommentService;
import com.heima.common.dtos.PageResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @BelongsProject: leadnews---practical--3
 * @BelongsPackage: com.heima.comment.controller
 * @Author: 栋哥
 * @CreateTime: 2023-06-12  10:49
 * @Description: TODO
 * @Version: 1.0
 */
@RestController
public class commentController {

    @Autowired
    private ApCommentService commentService;

    @PostMapping("/api/v1/comment/manage/find_news_comments")
    public PageResult findNewsComments(@RequestBody FindNewsCommentsDto dto){

        PageResult result = commentService.findNewsComments(dto);

        return result;

    }

}
